﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;

namespace AMS.DataAccess
{
    public class AccessLogDAL
    {
        private readonly SQLHelper sqlHelper = new SQLHelper();
        public void AddAcessLog(string id, int status)
        {
            StringBuilder sbSql = new StringBuilder();
            sbSql.Append("INSERT INTO AcessLog([ID],[AccountID],[Status],[CreateTime])");
            sbSql.AppendFormat("VALUES(NEWID(),'{0}',{1},GETDATE())", id, status);
            sqlHelper.ExecuteCommand(sbSql.ToString(),false,null);
        }
    }
}
